<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<STYLE type=text/css> 
{
	FONT-SIZE: 12px
}
.gridView {
	BORDER-RIGHT: #bad6ec 1px; BORDER-TOP: #bad6ec 1px; BORDER-LEFT: #bad6ec 1px; COLOR: #566984; BORDER-BOTTOM: #bad6ec 1px; FONT-FAMILY: Courier New
}
.gridViewHeader {
	BORDER-RIGHT: #bad6ec 1px solid; BORDER-TOP: #bad6ec 1px solid; BACKGROUND-IMAGE: url(../images/bg_th.gif); BORDER-LEFT: #bad6ec 1px solid; LINE-HEIGHT: 27px; BORDER-BOTTOM: #bad6ec 1px solid
}
.gridViewItem {
	BORDER-RIGHT: #bad6ec 1px solid; BORDER-TOP: #bad6ec 1px solid; BORDER-LEFT: #bad6ec 1px solid; LINE-HEIGHT: 32px; BORDER-BOTTOM: #bad6ec 1px solid; TEXT-ALIGN: center
}
.cmdField {
	BORDER-RIGHT: 0px; BORDER-TOP: 0px; BACKGROUND-IMAGE: url(../images/bg_rectbtn.png); OVERFLOW: hidden; BORDER-LEFT: 0px; WIDTH: 67px; COLOR: #364c6d; LINE-HEIGHT: 27px; BORDER-BOTTOM: 0px; BACKGROUND-REPEAT: repeat-x; HEIGHT: 27px; BACKGROUND-COLOR: transparent; TEXT-DECORATION: none
}
.buttonBlue {
	BORDER-RIGHT: 0px; BORDER-TOP: 0px; BACKGROUND-IMAGE: url(../images/bg_button_blue.gif); BORDER-LEFT: 0px; WIDTH: 78px; COLOR: white; BORDER-BOTTOM: 0px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 21px
}
</STYLE>
</head>
<body>

				<form action="/bookDeviceSys/device/device!selectByConditions" method="post">
	
				<b> 设备ID</b><input type="text" name="deviceVo.did">


              	<b>设备名</b><input type="text" name="deviceVo.dname">
              	<b>设备状态</b><input type="radio" value="0" name="deviceVo.dstatus">可用
              	<input type="radio" value="1" name="deviceVo.dstatus">不可用
              	<b>设备分类</b>
              	<select name="deviceVo.classification">
              		<option value="0">摄像</option>
              		<option value="1">摄影</option>
              	</select>
             	<input type="submit" value="查询"/>
              	</form>

            <TABLE class=gridView 
      style="WIDTH: 100%; BORDER-COLLAPSE: collapse" cellSpacing=0 rules=all 
      border=1>
              <TBODY>
              	<TR>
                  <TH class=gridViewHeader style="WIDTH: 50px" scope=col>&nbsp;</TH>
                  <TH class=gridViewHeader scope=col>设备ID</TH>
                  <TH class=gridViewHeader scope=col>设备名</TH>
                  <TH class=gridViewHeader scope=col>设备状态</TH>
                  <TH class=gridViewHeader scope=col>设备分类</TH>
                  <TH class=gridviewHeader scope=col>更新</TH>
                  <TH class=gridviewHeader scope=col>删除</TH>
                </TR>
           <s:iterator value="#request.deviceList" var="deviceVo">
			 	<TR>
			 	<TD class=gridViewItem style="WIDTH: 50px"><IMG src="../backHome.files/EmployeeMgr.files/bg_users.gif"> </TD>
			 	<TD class=gridViewItem><s:property value="#deviceVo.did"/></TD>
			 	<TD class=gridViewItem><s:property value="#deviceVo.dname"/></TD>
			 	<s:if test="#deviceVo.dstatus == 0">
			 	<TD class=gridViewItem>可用</TD>
			 	</s:if>
			 	<s:else>
			 	<TD class=gridViewItem>不可用</TD>
			 	</s:else>
			 	<s:if test="#deviceVo.classification == 0">
			 	<TD class=gridViewItem>摄像</TD>
			 	</s:if>
			 	<s:elseif test="#deviceVo.classification == 1">
			 	<TD class=gridViewItem>摄影</TD>
			 	</s:elseif>
			 	<s:else>
			 	<TD class=gridViewItem></TD>
			 	</s:else>
			 	<TD class=gridViewItem><A class=cmdField href="">编辑</A></TD>
                <TD class=gridViewItem><A class=cmdField onclick="return confirm('确定要删除吗？');" href="">删除</A> </TD>
			 	</TR>
	
</s:iterator>
                </TBODY>
                </TABLE>
                <s:debug></s:debug>
</body>
</html>